public class Token {

    private String source;
    private int start;
    private int end;

    public Token(String src, int s, int e) {
	source = src;
	start = s;
	end = e;
    }

    public String getText() {
	return source.substring(start, end);
    }

    public int getStart() {
	return start;
    }

    public int getEnd() {
	return end;
    }

    public int getLength() {
	return end - start;
    }

}

